﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/Home.Master" AutoEventWireup="true" CodeBehind="ImageProduct.aspx.cs" Inherits="TTMarketing.Admin.ImageProduct" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMain" runat="server">
<asp:Panel ID="Panel1" runat="server" Width="100%">
        <fieldset>
            <legend>Thông tin hình ảnh</legend>
            
            <table width="100%">
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName" runat="server" Text="Tên sản phẩm"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblProductName" runat="server" Text="N/A"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest" runat="server" Text="Số hiệu"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cmbNumber" Runat="server">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Text="1" 
                                    Value="1" Owner="cmbNumber" />
                                <telerik:RadComboBoxItem runat="server" Text="2" Value="2" />
                                <telerik:RadComboBoxItem runat="server" Text="3" Value="3" />
                                <telerik:RadComboBoxItem runat="server" Text="4" Value="4" />
                                <telerik:RadComboBoxItem runat="server" Text="5" Value="5" />
                                <telerik:RadComboBoxItem runat="server" Text="6" Value="6" />
                                <telerik:RadComboBoxItem runat="server" Text="7" Value="7" />
                                <telerik:RadComboBoxItem runat="server" Text="8" Value="8" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest3" runat="server" Text="Hình ảnh"></asp:Label>
                        <br />
                        (Cỡ 120px x 40px)</td>
                    <td>
                        <asp:Image ID="Image1" runat="server" Height="40px" Width="120px" />
                        &nbsp;<br />
                        <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" 
                            AllowedFileExtensions="jpeg,jpg,gif,png,bmp" MaxFileInputsCount="1" 
                            TargetFolder="~/Image/Upload" TargetPhysicalFolder="~/Image/Upload">
                        </telerik:RadAsyncUpload>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="Thêm" />
                        &nbsp;
                        <asp:Button ID="btnClear" runat="server" Text="Đóng" />
                        &nbsp;
                        <input id="Reset1" type="reset" value="Reset" />
                    </td>
                </tr>
            </table>
            <br />
            <asp:HiddenField ID="hfId" runat="server" />
            <br />
            
        </fieldset>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" Width="100%">
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" 
            AllowSorting="True" DataSourceID="odsImageProduct" GridLines="None" 
            ShowFooter="True">
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView AutoGenerateColumns="False" DataSourceID="odsImageProduct">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Id" 
                        SortExpression="Id" UniqueName="Id">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" 
                        SortExpression="Name" UniqueName="Name">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Number" HeaderText="Number" 
                        SortExpression="Number" UniqueName="Number" DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProductId" HeaderText="ProductId" 
                        SortExpression="ProductId" UniqueName="ProductId" DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Action" UniqueName="TemplateColumn">
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton1" runat="server" 
                                ImageUrl="~/Admin/Images/Button/Edit_Grid.gif" />
                            &nbsp;&nbsp;<asp:ImageButton ID="ImageButton2" runat="server" 
                                ImageUrl="~/Admin/Images/Button/Delete_Grid.gif" />
                            &nbsp;
                        </ItemTemplate>
                        <ItemStyle Width="40px" />
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <HeaderContextMenu EnableAutoScroll="True">
            </HeaderContextMenu>
        </telerik:RadGrid>
        <asp:ObjectDataSource ID="odsImageProduct" runat="server" SelectMethod="getAll" 
            TypeName="TTBusiness.clsBSImageProduct"></asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
